package com.jack.design_patterns.structural.decorator.define;


public class Client {

    public static void main(String[] args) {
        Component component = new ConcreteComponent();
        // 第一次装饰
        component = new ConcreteDecorator1(component);
        // 到二次装饰
        component = new ConcreteDecorator2(component);
        // 装饰之后的调用
        component.operation();
    }
}
